<template>
  <j-select-biz-component  :value="value" :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectPosition',
    components: { JSelectBizComponent },
    props:['value'],
    data() {
      return {
        settings: {
          name: '公式',  
          displayKey: 'formulaName',
          returnKeys: ['formulaName','id'],
          listUrl: '/userFormula/userFormula/list',
          queryParamCode: 'formulaName',
          queryParamText: '公式名称',
          columns: [
             { title: '名称', dataIndex: 'formulaName', align: 'center', width: '35%'},
            { title: 'id', dataIndex: 'id', align: 'center', width: '15%', widthRight: '70%' },
            { title: '内容', dataIndex: 'formulaContent', align: 'center', width: '50%' }
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>